package com.atguigu.daijia.map.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

@Configuration
public class MapConfig {

    //使用RestTemplate来发起网络请求
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}
